package entity;

import java.util.List;

/**
 * 树形结构节点
 */
public class TreeStructure {
    //唯一标识
    private String id;
    //名称
    private String name;
    //父节点
    private String parentId;
    //级别
    private int level;
    //子节点
    private List<TreeStructure> children;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public List<TreeStructure> getChildren() {
        return children;
    }

    public void setChildren(List<TreeStructure> children) {
        this.children = children;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
